﻿
namespace eLearning.Model
{
    public class MataKuliah
    {
        public string Id { get; set; }
        public string Kode { get; set; }
        public string Nama { get; set; }
        public short SKS { get; set; }
        public short Semester { get; set; }

        public override string ToString()
        {
            return Nama + " (" + SKS + " SKS)";
        }

        public override bool Equals(object obj)
        {
            return Id == (obj as MataKuliah).Id;
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

    }
}
